/*Copyright ©2015 TommyLemon(https://github.com/TommyLemon)

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.*/

package com.nhc.model;

import java.util.ArrayList;

import zuo.biao.library.base.BaseModel;


public class KMLPlacemark extends BaseModel {

    private static final long serialVersionUID = 1L;

//    <coordinates>
//        115.9554130118,40.5203889962,549.53
//        115.9554130118,40.5204930156,550.01
//        115.9553359821,40.5205770023,550.01
//        115.9552229941,40.5207489990,550.97
//        115.9551319666,40.5208260287,551.45
//        115.9550909791,40.5209199898,551.45
//        115.9550130274,40.5210290384,551.93
//        115.9549370036,40.5211260170,552.9
//        115.9548579622,40.5212300364,552.9
//    </coordinates>

    //coordinates： lon + lat + alt
    public ArrayList<Coordinate> coordList = new ArrayList<Coordinate>();//LineString
    public String name = "";//<name><![CDATA[龙聚山庄-后河-龙庆峡库尾-黄柏寺 001]]></name>
    public String description = "";
    public String styleUrl = "";//<styleUrl>#line1</styleUrl> //#line1--线的标签；对应线宽设置
    public long datetime = 0;//<time>2014.5.29 14:15:36</time>
    public String altitudeMode = "";//<altitudeMode>clampToGround</altitudeMode>
    public boolean haveLineString = true;//coordList多个；可能是航线／航迹

    public KMLPlacemark() {
        //default
        reset();
    }

    public void reset() {

    }

    @Override
    protected boolean isCorrect() {
        return id > 0;
    }

}
